<!--
/**
* Author: zyf
* Date: 2020-07-15 17:50
* Desc: ZmTimeSelect
*/
-->

<template>
  <el-time-select v-bind="$attrs" v-on="$listeners" :placeholder="placeholder" />
</template>

<script>
export default {
  name: 'ZmTimeSelect',
  props: {
    placeholder: {
      type: String,
      default: '请选择时间'
    }

  },
  data () {
    return {
    }
  },
  computed: {
    currentOption () {
      if (this.pickerOptions) { return this.pickerOptions }
      let option = {
        start: this.start,
        end: this.end,
        step: this.step
      }
      this.maxTime && (option.maxTime = this.maxTime)
      this.minTime && (option.minTime = this.minTime)
      return option
    }

  },

  methods: {
    // 初始化方法
    init () { }
  }
}

</script>
<style lang='scss' scoped>
</style>
